<%@page import="com.nuaa.domain.overseas.LocalDisEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	LocalDisEntity localInfo = (LocalDisEntity)request.getAttribute("localInfo");
	String filePath = request.getAttribute("filePath").toString();
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="back_sup" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:30px;">
	<table align="center">
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=localInfo.getOrder_no()%></td>
			<td></td>
			<td></td>
			<td>客户编号</td>
			<td>&nbsp;<%=localInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=localInfo.getBusiness_type()%></td>
			<td></td>
			<td></td>
			<td>下单时间</td>
			<td>&nbsp;<%=localInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>订单邮费</td>
			<td>&nbsp;<%=localInfo.getPostage()==null?"未指定":localInfo.getPostage()%>&nbsp;&nbsp;<font color='red'>(美金)</font></td>
			<td></td>
			<td></td>
			<td>订单人工费</td>
			<td>&nbsp;<%=localInfo.getLaborFee()==null?"未指定":localInfo.getLaborFee()%>&nbsp;&nbsp;<font color='red'>(美金)</font></td>
		</tr>
		<tr>
			<td>订单状态</td>
			<td>&nbsp;
				<%
				int value = localInfo.getState();
				if(value==0)
	    			 out.print("待审核");
				else if(value==1)
	    			 out.print("审核中");
	    		 else if(value==2)
	    			 out.print("备货中");
	    		 else if(value == 3)
	    			 out.print("待付款");
	    		 else if(value==4)
	    			 out.print("发货中");
	    		 else if(value==5)
	    			 out.print("完成");
	    		 else
	    			 out.print("状态出错");
				%>
			</td>
			<td></td>
			<td></td>
			<td>商品编码</td><td>&nbsp;<%=localInfo.getPro_no()%></td>
		</tr>
		<tr>
			<td>商品名称</td><td>&nbsp;<%=localInfo.getPro_name()%></td>
			<td></td>
			<td></td>
    		<td>图片</td>  
        	<td>
        		&nbsp;
        		<% if(localInfo != null && localInfo.getImage_name()!=null&& !localInfo.getImage_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+localInfo.getImage_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			 </td> 
    	</tr>
		<tr></tr>
		<tr>
			<td>存放仓库</td><td>&nbsp;<%=localInfo.getWarehouse()%></td>
			<td></td>
			<td></td>
			<td>区位</td><td>&nbsp;<%=localInfo.getLocation()%></td>
		</tr>
		<tr></tr>
		<tr>
			<td>库位号</td><td>&nbsp;<%=localInfo.getLoc_no()%></td>
			<td></td>
			<td></td>
			<td>重量</td><td>&nbsp;<%=localInfo.getWeight()%>&nbsp;(LB)</td>
		</tr>
		<tr></tr>
		<tr>
			<td>平均尺寸</td>
			<td  colspan="4">&nbsp;长&nbsp; <%=localInfo.getLength()%>
				&nbsp;&nbsp;&nbsp;宽
			     &nbsp;<%=localInfo.getWidth()%>&nbsp;&nbsp;&nbsp;
			       高&nbsp;<%=localInfo.getHeight()%>&nbsp;&nbsp;&nbsp;(单位：CM)</td>
		</tr>
		<tr></tr>
		<tr>
			<td>产品数量</td><td>&nbsp;<%=localInfo.getPro_number()%></td>
			<td></td>
			<td></td>
			
		</tr>
		
		<tr>
			<td>物流公司</td>
			<td>
        		&nbsp;
        		<%=localInfo.getLogiCompany()==null?"--":localInfo.getLogiCompany()%>
			 </td> 
			<td></td>
			<td></td>
    		<td>物流单号</td>  
        	<td>
        		&nbsp;
        		<%=localInfo.getLogiNumber()==null?"--":"<b style='color:red'>"+localInfo.getLogiNumber()+"</b>"%>
			 </td> 
    	</tr>
		
		<tr>
		<td>收货信息</td>
		<td><textarea rows="6" cols="20"> <% out.println(localInfo.getReceiver());out.print(localInfo.getDis_address());%></textarea>
		<td></td>
		<td></td>
			<td></td>
		</tr>
		
	</table>
</div>
</div>
